package com.ability;

import com.info.BonusTypeEnum;

public enum AbilityEnum {
	STRENGTH,
	DEXTERITY,
	CONSTITUTION,
	INTELLIGENCE,
	WISDOM,
	CHARISMA,
	
	LAST_ENUM;
	
	public static BonusTypeEnum convertAbilityToBonus(AbilityEnum ability){
		if (ability.equals(LAST_ENUM)){
			return null;
		}
		return BonusTypeEnum.values()[ability.ordinal() + BonusTypeEnum.STR_BONUS.ordinal()];
	}
}
